rem $(ConfigurationName)
set ConfigurationName=%1%
set Platform=%2%

echo ConfigurationName = %ConfigurationName%
echo Platform = %Platform%

call "%WIX%bin\candle.exe" DigitRecognition.wxs Bin.wxs MinstDatabase.wxs Sample.wxs -d"ConfigurationName=%ConfigurationName%" -d"Platform=%Platform%" -d"MnistDatabaseFolder=../MnistDatabase" -d"SampleFolder=../Sample" -out %Platform%/%ConfigurationName%/
call "%WIX%bin\light.exe" %Platform%/%ConfigurationName%\DigitRecognition.wixobj %Platform%/%ConfigurationName%\Bin.wixobj %Platform%/%ConfigurationName%\MinstDatabase.wixobj %Platform%/%ConfigurationName%\Sample.wixobj -ext WixUIExtension.dll -out ../%Platform%/%ConfigurationName%/DigitRecognition.msi